<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="tephone=no,email=no,date=no,address=no">
    <title></title>
    <style>
        #overdue {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #ffffff;
            text-align: center;
            padding-top: 3rem;
            z-index: 9999
        }
    </style>
</head>

<body>
    <script type="text/javascript">
        apiready = function() {
            var user = api.getPrefs({
                sync: true,
                key: 'user'
            });
            // var timestamp = new Date().getTime()
            // if (timestamp > 1526227199000) {
            //     var body = document.body;
            //     var div = document.createElement("div");
            //     div.id = "overdue";
            //     div.innerHTML = "测试版已失效";
            //     body.appendChild(div);
            // } else {
            //
            // }
            if (user) {
                api.openWin({
                    name: 'main',
                    url: './html/main.html',
                    slidBackEnabled: false
                });
            } else {
                api.openWin({
                    name: 'login',
                    url: './html/login.html',
                    slidBackEnabled: false
                });
            }
        }
    </script>
</body>

</html>
